
package com.ddm.demo.demos.web.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
@CrossOrigin(origins = "http://localhost:8082")
public class BasicController {
    @GetMapping("/check")
    public String getUserById(@RequestParam("account") String account , @RequestParam("password") String password) {
        if (account.equals("admin") && password.equals("admin"))   {
            System.out.println("good");
            return "success";
        }
        return "fail";
    }
}
